package love.yuanmengrobot.als.business.dao;

import love.yuanmengrobot.als.business.javaBean.Alstrainplan;
import love.yuanmengrobot.als.business.javaBean.Alstrainplancourse;
import love.yuanmengrobot.als.business.javaBean.Major;
import love.yuanmengrobot.als.business.util.TrainPlan;

import java.util.ArrayList;
import java.util.List;

public interface ImportPlainDao {
    List<Major> selectAllMajor();
    List<Alstrainplan> selectAllAlstrainplain(String majorId);
    List<Alstrainplancourse> selectAllAlstrainplancourse( String trainplain);
    ArrayList<Alstrainplancourse> selectAllAlstrainplancourse(String majorID, String grade);


    int insertMajor(String majorName);
    int insertAlstrainplain();
    int insertAlstrainplancourse();


    int deleteMajorById();
    int deleteAlstrainplainById();
    int deleteAlstrainplancourseById();

    int updateMajorById(String  majorId,String majorName);
    int updateAlstrainplainById(Alstrainplan alstrainplan);
    int updateAlstrainplancourseByPlain(TrainPlan trainPlan , TrainPlan trainPlans[]);

    int updateAlstrainplancourseByAlstrainplancourse(Alstrainplancourse alstrainplancourse);



}
